package generics;

import java.util.Arrays;
import java.util.List;

/**
 * @author 杨宇
 * @version 1.0 2016/11/8
 */
public class CompilerIntelligence {

    public static void main(String[] args) {
        List<? extends Fruit> flist = Arrays.asList(new Apple());
        Apple a = (Apple) flist.get(0);
        flist.contains(new Apple());
        flist.indexOf(new Apple());
    }
}
